<?php
$login = array(
	'name'	=> 'login',
	'id'	=> 'login',
	'value' => set_value('login'),
	'maxlength'	=> 80,
	'size'	=> 30,
);
if ($login_by_username AND $login_by_email) {
	$login_label = 'Email or login';
} else if ($login_by_username) {
	$login_label = 'Login';
} else {
	$login_label = 'Email';
}
$password = array(
	'name'	=> 'password',
	'id'	=> 'password',
	'size'	=> 30,
);
$remember = array(
	'name'	=> 'remember',
	'id'	=> 'remember',
	'value'	=> 1,
	'checked'	=> set_value('remember'),
	'style' => 'margin:0;padding:0',
);
$captcha = array(
	'name'	=> 'captcha',
	'id'	=> 'captcha',
	'maxlength'	=> 8,
);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="imagetoolbar" content="no" />
<title>admin05</title>
<link media="screen" rel="stylesheet" type="text/css" href="../../css/login.css"  />
<!--[if lte IE 6]><link media="screen" rel="stylesheet" type="text/css" href="css/login-ie.css" /><![endif]-->
<!-- aurora-theme is default -->


</head>

<body>
	<!--[if !IE]>start wrapper<![endif]-->
	<div id="wrapper">
	<div id="wrapper2">
	<div id="wrapper3">
	<div id="wrapper4">
	<span id="login_wrapper_bg"></span>
	
	<div id="stripes">		
		
		<!--[if !IE]>start login wrapper<![endif]-->
		<div id="login_wrapper">
			
			
			<!--<div class="error">
				<div class="error_inner">
					<strong>Access Denied</strong> | <span>user/password combination wrong</span>
				</div>
			</div>

			-->
			
			
			<!--[if !IE]>start login<![endif]-->
				<?php echo form_open($this->uri->uri_string()); ?>
				<fieldset>
					<h1>Please log in</h1>
					<div class="formular">
						<span class="formular_top"></span>
						
						<div class="formular_inner">
						
						<label>
							<strong><?=$login_label?></strong>

							<span class="input_wrapper">
								<?php echo form_input($login); ?>
							</span>
							
						</label>
						
						<label class="inline">
							<?php echo form_error($login['name']); ?>
							<?php echo isset($errors[$login['name']])?$errors[$login['name']]:''; ?>
						</label>
						
						<label>
							<strong>Password:</strong>
							<span class="input_wrapper">
								<?php echo form_password($password); ?>
							</span>
						</label>
						
						<label class="inline">
							<?php echo form_error($password['name']); ?>
							<?php echo isset($errors[$password['name']])?$errors[$password['name']]:''; ?>
						</label>
						
                                                <?php if ($show_captcha) {
                                                        if ($use_recaptcha) { ?>
                                                <tr>
                                                        <td colspan="2">
                                                                <div id="recaptcha_image"></div>
                                                        </td>
                                                        <td>
                                                                <a href="javascript:Recaptcha.reload()">Get another CAPTCHA</a>
                                                                <div class="recaptcha_only_if_image"><a href="javascript:Recaptcha.switch_type('audio')">Get an audio CAPTCHA</a></div>
                                                                <div class="recaptcha_only_if_audio"><a href="javascript:Recaptcha.switch_type('image')">Get an image CAPTCHA</a></div>
                                                        </td>
                                                </tr>
                                                <tr>
                                                        <td>
                                                                <div class="recaptcha_only_if_image">Enter the words above</div>
                                                                <div class="recaptcha_only_if_audio">Enter the numbers you hear</div>
                                                        </td>
                                                        <td><input type="text" id="recaptcha_response_field" name="recaptcha_response_field" /></td>
                                                        <td style="color: red;"><?php echo form_error('recaptcha_response_field'); ?></td>
                                                        <?php echo $recaptcha_html; ?>
                                                </tr>
                                                <?php } else { ?>
                                                <tr>
                                                        <td colspan="3">
                                                                <p>Enter the code exactly as it appears:</p>
                                                                <?php echo $captcha_html; ?>
                                                        </td>
                                                </tr>
                                                <tr>
                                                        <td><?php echo form_label('Confirmation Code', $captcha['id']); ?></td>
                                                        <td><?php echo form_input($captcha); ?></td>
                                                        <td style="color: red;"><?php echo form_error($captcha['name']); ?></td>
                                                </tr>
                                                <?php }
                                                } ?>
	
	
						<label class="inline">
							<?php echo form_checkbox($remember); ?>
							remember me on this computer
						</label>
						
						
						<ul class="form_menu">
							<li><span class="button"><span><span><em>LOGIN</em></span></span><?php echo form_submit('submit', 'Let me in'); ?></span></li>
							<li><span class="button"><span><span><?php if ($this->config->item('allow_registration', 'tank_auth')) echo anchor('/auth/register/', 'ĐĂNG KÝ'); ?></span></span></span></li>
							<li><span class="button"><span><span><?php echo anchor('/auth/forgot_password/', 'Quên password?'); ?></span></span></span></li>
							
						</ul>
						
						</div>
						
						<span class="formular_bottom"></span>
						
					</div>
				</fieldset>
			<?php echo form_close(); ?>            
			<!--[if !IE]>end login<![endif]-->
			
			<!--[if !IE]>start reflect<![endif]-->
			<span class="reflect"></span>
			<span class="lock"></span>
			<!--[if !IE]>end reflect<![endif]-->
			
			
		</div>

		<!--[if !IE]>end login wrapper<![endif]-->
	    </div>
		</div>
     	</div>
		</div>	
	</div>
	<!--[if !IE]>end wrapper<![endif]-->
</body>
</html>